Skip to content

[TypeDeclaration] Handle with other method from parent on KnownMagicClassMethodTypeRector#7423

Merged
samsonasik merged 4 commits intomainfrom
with
Oct 4, 2025
Merged

[TypeDeclaration] Handle with other method from parent on KnownMagicClassMethodTypeRector#7423
samsonasik merged 4 commits intomainfrom
with

Conversation

@samsonasik
Copy link
Member

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @TomasVotruba

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit bbd09ab into main Oct 4, 2025
50 checks passed
@samsonasik samsonasik deleted the with branch October 4, 2025 18:10
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source",
"rules-tests/Renaming/Rector/Name/RenameClassRector/Source"
"rules-tests/Renaming/Rector/Name/RenameClassRector/Source",
"rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Source"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed. The class respects PSR-4, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is weird that without it, it doesn't work on this case, probably some sort order issue or some case sensitive typo, but double check without add to classmap, use previous return null, then run "composer update", and error happen

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I got it, the class name is different with file name:

-abstract class ParentClassWithOtherMethod
+abstract class ParentClassOtherMethod

as file name is named ParentClassOtherMethod, I will create new PR for it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants